<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<html xmlns="http://www.w3.org/1999/xhtml" 
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:h="http://java.sun.com/jsf/html">
	<head>
		<title>
		</title>	
	</head>
	<body>
		<ui:composition template="/Template/template01.xhtml">		
			<ui:define name="body">
			<link href="css/global.css" rel="stylesheet" type="text/css"/> 
			 <style>
			  	.lbl { cursor:pointer; text-decoration: underline; font-family: sans-serif; font-size: 11px; color: #021f91; }
			  </style>
			  <script type="text/javascript">
			  function clickBoton(){ 
			  		$("body").css("cursor", "progress");
			  }
			  </script>
			
			
				<h:form id="detailForm">
				<h:inputHidden id="method"></h:inputHidden>		
				<h:inputHidden value="#{user.idRole}" id="cborol" />
  <table width="95%" border="0" cellpadding="0" cellspacing="0" class="TablaBody1">
    <tr>
      <td colspan="2" align="right" class="CelTop">
      <h:graphicImage library="images" name="transp.gif" width="1" height="1"/>
      </td>
      <td width="6%" rowspan="3" align="right" valign="middle">&nbsp;</td>
    </tr>
    <tr>
      <td width="3%" height="10" align="right">
      <h:graphicImage library="images" name="flechanaranja.gif" width="11" height="13"/>
      </td>
     
	      <td width="91%">
		      <span class="TextoTitulosBlack">
		      	#{message.menuAdministracion}:
		      </span> 
		      <span class="TextoTitulos">
		      	#{message.solicitud}
		      </span>
	      </td>      
      
    </tr>
    <tr>
      <td height="19" align="right" class="CelUnder">&nbsp;</td>
      <td class="TextoTitulos">&nbsp;</td>
    </tr>
  </table>
  <table width="101%" border="0" cellpadding="0" cellspacing="0" class="TablaBody1">
    <tr>
      <td width="25" class="celBodyLeft">&nbsp;</td>
      <td width="771">
      <table width="85%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="18" valign="bottom" class="TextoTitulo2">
            	#{message.usr_DetailTitulo}
            </td>
          </tr>
      </table>
          <table width="85%" border="0" cellpadding="0" cellspacing="0" class="fondo-blanco">
            <tr align="center" >
            	
	              <td valign="bottom" nowrap="nowrap" class="TabOff">
		              <span class="FontTabOff">
		              	<h:commandLink  id="linkInfo" actionListener="#{solicitud.gotoInformationReq}" action="#{solicitud.processAction}" value="#{message.cfg_InformationInformacion}" styleClass="FontTabOff"/>
		              
		              
		              </span>
	              </td>
	              <td valign="bottom" nowrap="nowrap" class="TabOn">
		              <span class="FontTabOn">
		              	Casos de Prueba
		              </span>
	              </td>
	              
	              <td width="4" align="right" nowrap="nowrap" class="TitulosTablas">
	              <h:graphicImage library="images" name="transp.gif" width="1" height="1"/><h:graphicImage library="images" name="transp.gif" width="1" height="1"/>
	              
	              </td>
	              <td width="140" align="center" valign="bottom" nowrap="nowrap">
	              	
	              </td>
	              <td align="right" nowrap="nowrap" class="">&#160;</td>              	              
	              <td width="83" align="right" nowrap="nowrap">
	              	<span class="paginacion">
	              	    <h:commandLink id="abc" actionListener="#{solicitud.procesMenuQuery}" action="#{solicitud.processAction}" value="#{message.irAlListado}" rendered="#{container.vcType == '1'}"/>
						<h:commandLink id="abcd" actionListener="#{solicitud.aprobarRequerimiento}" action="#{solicitud.processAction}" value="#{message.irAlListado}" rendered="#{container.vcType == '2'}"/>
						<h:commandLink id="abcde" actionListener="#{solicitud.consultar}" action="#{solicitud.processAction}" value="#{message.irAlListado}" rendered="#{container.vcType == '3'}"/>
						<h:commandLink id="abcdef" actionListener="#{solicitud.crearRequerimiento}" action="#{solicitud.processAction}" value="#{message.irAlListado}" rendered="#{container.vcType == '4'}"/>
	              	</span>
	              </td>              
             
            </tr>
          </table>
        <table width="85%" border="0" cellpadding="0" cellspacing="0" class="fondo-blanco" dwcopytype="CopyTableCell">
            <tr align="left" >
              <td height="6" colspan="10" class="FondoCelAzul"><h:graphicImage library="images" name="transp.gif" width="1" height="1"/></td>
            </tr>
            <tr align="left" >
              <td height="1" colspan="10"><h:graphicImage library="images" name="transp.gif" width="1" height="1"/></td>
            </tr>
        </table>
        <table width="85%" border="1" cellpadding="5" cellspacing="1" bordercolor="#CCCCCC" class="">
            <tr align="center" >
              <td align="center" nowrap="nowrap" bgcolor="#FFFFFF">
              
              <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="TablaTabs">
             	 <tr align="left">
                    <td width="33%" height="22" class="TextoCuerpo1">
                    	ID Solicitud:&#160;&#160;<h:outputText id="idUser" value="#{solicitud.id}" />
                    </td>
                    <td width="33%" class="TextoCuerpo1">
                    	#{message.descripcion}:&#160;&#160;<h:outputText id="us" value="#{solicitud.description}" styleClass="Texbox3"/>
                    </td>
                    
                    <td width="34%" class="TextoCuerpo1">
                    	#{message.numero}:&#160;&#160;<h:outputText id="name" value="#{solicitud.number}" styleClass="Texbox3" />     
                    </td>
                  </tr>
              </table>
              
              <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="TablaTabs">
           
                 
              <tr align="left">
                    <td width="33%" height="22" class="TextTabBody">
                    	#{message.subproducto}:&#160;&#160;
                    </td>
                    <td width="67%" class="TextoCuerpo1">
                    	<h:outputText id="usSub" value="#{solicitud.subproducto}" styleClass="Texbox3"/>
						
                    </td>
               </tr>
               
              
              
              
              </table>
              
              <table style="width: 95% !important" border="0" cellpadding="0" cellspacing="0" class="TablaBody1">
						<tr>
						    <td width="25" class="celBodyLeft">
						    
						    </td>
						    <td width="771">
						    	<table width="85%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td valign="bottom" class="TextoTitulo2">
									    	Listado de casos de prueba
									    </td>
									</tr>  
						    	</table>
								<table width="85%">
									<tr>
										<td>    
										
										<h:panelGroup rendered="#{solicitud.testcaseD == '[]'}"> 
											<span style="padding-left: 50%;">#{message.nodata}</span>
										</h:panelGroup>	
										
										<h:panelGroup rendered="#{solicitud.testcaseD != '[]'}"> 
											<h:dataTable id="datax" value="#{solicitud.testcaseD}" 
														 var="u" rows="50" border="0" cellpadding="0" cellspacing="1"
														 styleClass="TablaFondo2Listado" binding="#{solicitud.dataTableTestCase}">
												
												<h:column id="c0020x" >
													<f:facet name="header">														
										                												
													</f:facet>
													
													 	<div id="L34" align="center">
													 		
															<h:commandLink actionListener="#{solicitud.detailEditTestCase}" action="#{solicitud.processAction}" value="Editar" rendered="#{container.vcType == '4' and u.vcState == '1'}"/>
															
															<h:commandLink actionListener="#{solicitud.detailEditTestCase}" action="#{solicitud.processAction}" value="Editar" rendered="#{container.vcType == '4' and (u.vcState == '5' or u.vcState == '10') }"/>
															
														</div>
													
												</h:column>
												
												<h:column id="c0021xyzx">
													<f:facet name="header">														
										                	Id													
													</f:facet>
													<h:outputText id="v021xyzx" value="#{u.inIdTestCase}" styleClass="FondoCel3"/>
													
												</h:column>
												
												
												<!-- Comercio -->
									 
												<h:column id="c0022x" >
													<f:facet name="header">														
										                		Nombre			
													</f:facet>
													<h:outputText id="v022xy" value="#{u.vcName}" styleClass="FondoCel3"/>
												</h:column>	
												
												<h:column id="c001x">
													<f:facet name="header">														
										                	#{message.tipo}													
													</f:facet>
													<h:outputText id="v021x" value="Automatizada" rendered="#{u.vcType == '1'}" styleClass="FondoCel3"/>
													<h:outputText id="v0022x" value="Manual" rendered="#{u.vcType == '2'}" styleClass="FondoCel3"/>
													
												</h:column>
												
												
												<h:column id="c0022xx" >
													<f:facet name="header">														
										                		Criticidad			
													</f:facet>
													<h:outputText id="v02xs" value="Normal" rendered="#{u.vcCriticidad == '1'}" styleClass="FondoCel3"/>
													<h:outputText id="v02xss" value="Baja" rendered="#{u.vcCriticidad == '2'}" styleClass="FondoCel3"/>
													<h:outputText id="v02xsss" value="Alta" rendered="#{u.vcCriticidad == '3'}" styleClass="FondoCel3"/>
												</h:column>	
												
												<h:column id="c0022xxx" >
													<f:facet name="header">														
										                		Codigo			
													</f:facet>
													<h:outputText id="v022xz" value="#{u.vcCode}" styleClass="FondoCel3"/>
												</h:column>	
												
												
												<h:column id="c0024x">
													<f:facet name="header">														
										                		#{message.estado}											
													</f:facet>							
													<h:outputText id="v0xx" value="Registrado" rendered="#{u.vcState == '1'}" styleClass="FondoCel3"/>
													<h:outputText id="v1xx" value="Por asignar" rendered="#{u.vcState == '2'}" styleClass="FondoCel3"/>
													<h:outputText id="v2xx" value="Asignado" rendered="#{u.vcState == '3'}" styleClass="FondoCel3"/>
													<h:outputText id="v3xx" value="Revisado" rendered="#{u.vcState == '4'}" styleClass="FondoCel3"/>
													<h:outputText id="v4xx" value="Observado por revision" rendered="#{u.vcState == '5'}" styleClass="FondoCel3"/>
													<h:outputText id="v5xx" value="Por solicitar" rendered="#{u.vcState == '6'}" styleClass="FondoCel3"/>
													<h:outputText id="v6xx" value="Por asignar para ejecucion" rendered="#{u.vcState == '7'}" styleClass="FondoCel3"/>
													<h:outputText id="v7xx" value="Asignado para ejecucion" rendered="#{u.vcState == '8'}" styleClass="FondoCel3"/>
													<h:outputText id="v8xx" value="Ejecutado" rendered="#{u.vcState == '9'}" styleClass="FondoCel3"/>
													<h:outputText id="v10xx" value="Observado por ejecucion" rendered="#{u.vcState == '10'}" styleClass="FondoCel3"/>
																									
												</h:column>
												<h:column id="c0025x" >
													<f:facet name="header">														
										               		#{message.fecreg}										
													</f:facet>
													<h:outputText id="v025x" value="#{u.dtRegistry}" styleClass="FondoCel3">
														<f:convertDateTime pattern="#{message.dateFormat}" timeZone="#{message.timeZone}"/>
													</h:outputText>
												</h:column>
											</h:dataTable>	
										</h:panelGroup>
										</td>
									</tr>
							  	</table>										      
      							<p></p>
      						</td>
						</tr>
					</table>
              
              <table width="90%">
					<tr>													
						<td colspan="2">
              
								</td>
								</tr>
								<tr valign="middle" align="left">
								
                   <td colspan="2">
                   			<h:commandButton action="#{solicitud.processAction}" actionListener="#{solicitud.crearcp}" value="Crear caso de prueba" styleClass="botonmediano" rendered="#{container.vcType == '4' and (solicitud.asignar != '1' and solicitud.asignar2 != '1')}"/>
               		</td>
              </tr>
			</table>
											
				    
              </td>
            </tr>
        </table>
        <table width="85%" border="0" cellpadding="0" cellspacing="0">
             <tr class="FondoCel3" id="B35">
	            <td align="right">
	            	<h:commandButton actionListener="#{solicitud.asignar}"  action="#{solicitud.processAction}" value="Asignar" styleClass="botonmediano" rendered="#{container.vcType == '1'}"/>
	            	<h:commandButton actionListener="#{solicitud.aprobar}"  action="#{solicitud.processAction}" value="#{message.finrev}" styleClass="botonmediano" rendered="#{container.vcType == '2'}"/>
	            	<h:commandButton actionListener="#{solicitud.finalizarRegistroCp}"  action="#{solicitud.processAction}" value="Finalizar registro" styleClass="botonmediano" rendered="#{container.vcType == '4'  and (solicitud.asignar != '1' and solicitud.asignar2 != '1')}" onclick="clickBoton();"/>
	            	<h:commandButton actionListener="#{solicitud.finalizarActualizacion}"  action="#{solicitud.processAction}" value="#{message.finact}" styleClass="botonmediano" rendered="#{container.vcType == '4' and solicitud.state == '3'}"/>
	            	
	            	<h:commandButton id="abcx" actionListener="#{solicitud.procesMenuQuery}" action="#{solicitud.processAction}" value="Cancelar" rendered="#{container.vcType == '1'}" styleClass="botonmediano"/>
					<h:commandButton id="abcdx" actionListener="#{solicitud.aprobarRequerimiento}" action="#{solicitud.processAction}" value="Cancelar" rendered="#{container.vcType == '2'}" styleClass="botonmediano"/>
					<h:commandButton id="abcdex" actionListener="#{solicitud.consultar}" action="#{solicitud.processAction}" value="Cancelar" rendered="#{container.vcType == '3'}" styleClass="botonmediano"/>
					<h:commandButton id="abcdefx" actionListener="#{solicitud.crearRequerimiento}" action="#{solicitud.processAction}" value="Cancelar" rendered="#{container.vcType == '4'}" styleClass="botonmediano"/>
	            	
	            </td>
	          </tr>  
        </table>
        <p>&nbsp;</p></td>
    </tr>
  </table>
  <br/>
  <br/>	
				<h:inputHidden id="DivFor"></h:inputHidden></h:form>
			</ui:define>
		</ui:composition>
	</body>	
</html>